// eslint-disable-next-line
import { UserLayout } from '@/layouts'

const RouteView = {
  name: 'RouteView',
  render: (h) => h('router-view')
}

/**
 * 基础路由
 * @type { *[] }
 */
export const constantRouterMap = [
  {
    path: '/user',
    component: UserLayout,
    redirect: '/user/login',
    hidden: true,
    children: [
      {
        path: 'login',
        name: 'login',
        component: () => import(/* webpackChunkName: "user" */ '@/views/user/Login')
      },

      {
        path: 'register-result',
        name: 'registerResult',
        component: () => import(/* webpackChunkName: "user" */ '@/views/user/RegisterResult')
      },
      {
        path: 'recover',
        name: 'recover',
        component: undefined
      },

    ]
  },

  {
    path: '/404',
    name:'404',
    component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404')
  },
  {
    path: '/403',
    name:'403',
    component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/403')
  },
  {
    path: '/500',
    name:'500',
    component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/500')
  },
  //大屏
  {
    path: '/bigScreen',
    name:'bigScreen',
    component: () => import(/* webpackChunkName: "fail" */ '@/views/bigscreen/bigScreen')
  },
  {
    path: '/home',
    name:'home',
    component: () => import(/* webpackChunkName: "fail" */ '@/views/kzzx/home/home.vue')
  },
  {
    path: '/nh',
    name:'nh',
    component: () => import(/* webpackChunkName: "fail" */ '@/views/kzzx/nh/nh')
  },
  {
    path: '/zhaf',
    name:'zhaf',
    component: () => import(/* webpackChunkName: "fail" */ '@/views/kzzx/zhaf/zhaf')
  },

  {
    path: '/sc',
    name:'sc',
    component: () => import(/* webpackChunkName: "fail" */ '@/views/kzzx/sc/sc')
  },
  {
    path: '/xnzb',
    name:'xnzb',
    component: () => import(/* webpackChunkName: "fail" */ '@/views/kzzx/xnzb/xnzb')
  },
  {
    path: '/xj',
    name:'xj',
    component: () => import(/* webpackChunkName: "fail" */ '@/views/kzzx/sbxj/xj')
  },
  {
    path: '/gydxs',
    name:'gydxs',
    component: () => import(/* webpackChunkName: "fail" */ '@/views/kzzx/sbxj/gydxs')
  },
  {
    path: '/dydxs',
    name:'dydxs',
    component: () => import(/* webpackChunkName: "fail" */ '@/views/kzzx/sbxj/dydxs')
  },
  {
    path: '/rydxs',
    name:'rydxs',
    component: () => import(/* webpackChunkName: "fail" */ '@/views/kzzx/sbxj/rydxs')
  },
  {
    path: '/xydxs',
    name:'xydxs',
    component: () => import(/* webpackChunkName: "fail" */ '@/views/kzzx/sbxj/xydxs')
  },
]
